#pragma once
#include <iostream>
#include "network.h"

namespace krryn{
namespace core{
namespace io{
	template<typename E, typename T = std::char_traits<E> >
	class basic_instream : public std::basic_istream<E, T>{
	public:
		basic_instream(unsigned short a_Port = 27912)
			: std::basic_istream<E, T>(krryn::system::input_buffer<E, T>(a_Port)) {}
		~basic_instream() { delete this->rdbuf(); }
	};

	typedef basic_instream<char> instream;
	typedef basic_instream<wchar_t> winstream;
}
}
}
